<template>
  <div>
    <tr>
      <input
        type="Number"
        name=""
        id=""
        :value="obj.count"
        @input="$emit('add', $event.target.value)"
      />
      <td>{{ obj.goodsName }}</td>
      <td>{{ obj.count === 0 ? "卖光了" : "" }}</td>
    </tr>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    obj: Object,
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
